﻿using FreeSql.DataAnnotations;
using System;
using System.Collections.Generic;
using System.Text;


namespace Rswl.Common.Core.User.Aggregate.Entities
{
    [Table(Name="rswl_share_info")]
    public partial class ShareInfo
    { 

        [Column(IsIdentity=true)]
        public long Id { get; set; }
      
        public string UserId { get; set; }

        
        public DateTime CreateDate { get; set; } = DateTime.Now;
       
        public string Description { get; set; }

      
        public string InviteCode
        {
            get; set;
        }
        public ShareInfo()
        {

        }
        public ShareInfo(string userId, string description)
        {
            UserId = userId;
            Description = description;
            InviteCode = UserId;
            CreateDate = DateTime.Now;
        }
    }
}
